﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ComponentModel;

namespace KerriganDataContract.Vehicule
{
    [DataContract]
    public class TypeVehicleDC : INotifyPropertyChanged
    {
        public int _IdTypeVehicle;
        public string _Name;

        [DataMember]
        public int IdTypeVehicle
        {
            get { return this._IdTypeVehicle; }
            set { this._IdTypeVehicle = value; OnPropertyChanged("IdTypeVehicle"); }
        }

        [DataMember]
        public string Name
        {
            get { return this._Name; }
            set { this._Name = value; OnPropertyChanged("Name"); }
        }

        public event PropertyChangedEventHandler PropertyChanged;
        private void OnPropertyChanged(string property)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }
    }
}
